<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title> 主流布局--flex布局</title>
    <style>

        :root{
            --b-c:#303030;
        }
        body{
            margin: 0;
            background-color: var(--b-c);
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
        }

        h1{
            text-align: center;
            margin-top: 20px;
            margin-bottom: 50px;
        }

        a{
            width: 350px;
            color: white;
            text-decoration: none;
            font-size: 1.5em;
            text-align: center;
            border: 4px solid white;
            padding: 10px;
            letter-spacing: .1em;
            position: relative;
            transform: .3s;
            background-color: var(--b-c);
            text-transform: uppercase;
            margin-bottom: 3px;
        }

        a+a{
            margin-top: 50px;

        }

        a::before{
            position: absolute;
            content: "";
            top: -4px;
            left: 75%;
            width: 15%;
            background-color: var(--b-c);
            height: 4px;
            transform: skewX(-50deg);
            transform: .3s;

        }

        a::after{
            position: absolute;
            content: "";
            bottom: -4px;
            left: 20%;
            width: 15%;
            background-color: var(--b-c);
            height: 4px;
            transform: skewX(-50deg);
            transition: .3s;
        }

        a:hover{
            color: var(--color);
            border: 4px solid var(--color);
            letter-spacing: .3em;
            box-shadow: 0 0 40px var(--color);
        }

        a:hover::before{
            left: 20%;
        }

        a:hover::after{
            left: 75%;
       }
            
        

    </style>
</head>
<body>
    <h1>主流布局--flex布局</h1>
    <a href="./探究多列.html" target="_blank" style="--color: red;">探究多列</a>
    <a href="./flex布局案例1.html" target="_blank" style="--color: rgb(74, 135, 247);">flex布局案例1</a>
    <a href="./Flex布局案例2-微信聊天界面.html" style="--color: rgb(248, 106, 184);">Flex布局案例2-微信聊天界面</a>
    <a href="./flex骰子.html" target="_blank" style="--color: rgb(252, 176, 89);">flex骰子</a>
    <a href="./grid探究1.html" target="_blank" style="--color: rgb(47, 245, 73);">grid探究1</a>
    <a href="./grid探究2.html" target="_blank" style="--color: rgb(63, 50, 109);">grid探究2</a>
    <a href="./grid5种布局.html" target="_blank" style="--color: rgb(47, 13, 196);">grid5种布局</a>
    <a href="./商品布局.html" target="_blank" style="--color: rgb(246, 190, 49);">商品布局</a>

</body>
</html>